<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>组织生活详情</title>
		<meta name="decorator" content="default"/>
				
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/css/bootstrap.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/css/base.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/css/common.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/css/layout.css">
	<script src="<%=request.getContextPath()%>/static/js/jquery-1.10.2.js" type="text/javascript" charset="utf-8"></script>
	<script src="<%=request.getContextPath()%>/static/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<%=request.getContextPath()%>/static/layer/layer.js"></script>
	
		<style type="text/css">
			.e-form input{
				padding: 5px 0 !important;
			}
		</style>
<script type="text/javascript">
		$(document).ready(function() {
			
			function checkDate( sDate, Edate){
				var starttime = $('#starttime').val();  
				var endtime = $('#endtime').val();  
				var start = new Date(starttime.replace("-", "/").replace("-", "/"));  
				var end = new Date(endtime.replace("-", "/").replace("-", "/"));  				
				if(end<start){    
				    return false;    
				} else{
					return true;    
				}
			}
		    //页面加载获取党员积分内容			
				var personscoreid=$('#personscoreid0').val();
				function queryPersonAssessmentInfo(personscoreid,size){
					if(personscoreid != null && personscoreid != ''){					
						 $.ajax({  
						        url: "${ctx}/life/organizeLifeQd/queryPersonAssessmentInfo/"+personscoreid,  
						        type: "get",  
						        dataType: "json",  
						        async: false,//同步  
						        success: function(text){  
						        	if(text.sourceType=='1'){
						        		$("#dyscoreModeText"+size).val("固定"); 
						        		$("#dyfz"+size).attr("readonly","readonly");
						        	}else{
						        		$("#dyscoreModeText"+size).val("自设"); 
						        		$("#dyfz"+size).removeAttr("readonly");
						        	}
						        	$("#dyscoreMode"+size).val(text.sourceType); 			//分值方式：固定，自设		        	
						        	$("#dyscoreNumber"+size).val(text.upperCount); //分/次
						        	$("#dyfz"+size).val('${dyfz}'); 					        	
						        	if(text.type=='1'){
						        		$("#dytyText"+size).val("加分"); 
						        	}else{
						        		$("#dytyText"+size).val("减分"); 
						        	}
						        	$("#dytype"+size).val(text.type); 					        	
						        	$("#dyupperLimitScore"+size).val(text.upperScore);
						        	$("#dysqcs"+size).val(text.applyCount);
						        }  
						    });  
					}
				}
				//调用获取积分明细方法
				queryPersonAssessmentInfo(personscoreid,0);
			    
			    //手工录入事件  
				$('#sgAdd').click(function (){
					var html ="";
					$.ajax({
						url : "${ctx}/life/organizeLifeJh/getPersonByOrgid",
						type : "get",
						dataType : "json",
						async : false,//同步  
						success : function(text) {
							html +=  "<div style='text-align:left'>"
							+"<input id='xgBtn1' onclick='xg()' class='btn libts' style='background: red; color: #FFF;' type='button' value='确认'/></div>"
							+"<div class='tab-pane' style='padding: 20px 40px;'><table class=''>"
							for (var i = 0; i < text.length; i++) {
								html+="<tr id='"+ (i + 1)+ "'>"
												+ "<td><input type='radio' class='sds' id='radioPersonId' name='radioPersonId' value="+text[i].userId+"></td>"
												+ "<td><span style='color:black'>"+text[i].userName+"</span></td>"
												+ "</tr>";
												}
							html+="</table></div>"
							
						}
					});

					layer.open({
								type : 1,
								skin : 'layui-layer-rim', // 加上边框
								area : [ '200px', '300px' ],
								title : '请选择参会人员',
								content : html
							});				
			    	  
			      });
				//查看党员积分说明
				$('#queryPersonScoreInfo').click(function (){					
					var html ="";
					var typename="";
					var type="";//加分减分
					$.ajax({
						url : "${ctx}/life/organizeLifeQd/getPartyAssessmentInfo/2", 
						type : "get",
						dataType : "json",
						async : false,//同步  
						success : function(text) {
							typename=text.partyType;
							html +=  "<table class='e-table'><tr><td>积分内容</td><td>分值设置</td><td>类型</td></tr>"
							for (var i = 0; i < text.personAssessmentInfoList.length; i++) {
								if(text.personAssessmentInfoList[i].type=='1'){									
									type="加分";
					        	}else{
					        		type="减分";
					        	}																
								html+="<tr>"
								+ "<td  style='width:300px;text-align:left'>"+text.personAssessmentInfoList[i].title+"</td>"
								+ "<td style='width:470px;text-align:left'><span style='color:black'>"+text.personAssessmentInfoList[i].content+"</span></td>"
								+ "<td style='width:30px'><span style='color:black'>"+type+"</span></td>"
								+ "</tr>";							
							}
							html+="</table>"							
						}
					});

					layer.open({
								type : 1,
								skin : 'layui-layer-rim', // 加上边框
								area : [ '800px', '350px' ],
								title : '党员积分信息化管理项目表('+typename+')',
								content : html
							});				
			    	  
			      });
			    //结束登记
			    $('#jsdj').click(function (){			    	
			    	var organizeId="1";//党支部ID
			    	var organizeLifeId=$("#id").val();//组织生活ID
                   	
		    		var divs = $("#personS").find("div[id^=dyjs]");	 
		    		var countJf=0;
		    		$(divs).each(function(j, divs) {		
		    			countJf+=$("#dyfz"+j).val();
		    		});		    				    				    		
		    		//组装党员积分明细	
			    	var personScoreDetailList=new Array();	    	
			    	var divs = $("#personS").find("div[id^=dyjs]");	    	    
		    		$(divs).each(function(j, divs) {		  
		    			var personAssessmentInfoId=$("#personscoreid"+j).val();
		    			var scoreMode=$("#dyscoreModeText"+j).val();
		    			var defaultScore=$("#dyscoreNumber"+j).val();
		    			var score=$("#dyfz"+j).val();
		    			var upperScore=$("#dyupperLimitScore"+j).val();//上限分数
		    			var type=$("#dytype"+j).val();//加分减分
		    			var year=$("#column24").find("option:selected").text();//年份		    			
		    			var personScoreDetail=createPersonScoreDetail(organizeId, organizeLifeId, personAssessmentInfoId, scoreMode,defaultScore,score
		    		  			,upperScore,type,year);		    			
		    			personScoreDetailList.push(personScoreDetail);
    		
		    		});	
		    		
		    		//一个积分项的所有人员
                        var organizePersonDetailList1=new Array();
                        var check1=true;
		    		$("#personInfo").find("tr").each(function(i){		    			
		    			var personId=$(this).children("td").eq(1).children("input").eq(0).val();	
		    			var personName=$(this).children("td" ).eq(1).text();
		    			var checkScore=$(this).children("td" ).eq(4).children("input").eq(0).val();
		    			var applyScore=$(this).children("td" ).eq(4).children("input").eq(0).val();
		    			
		    			if(parseFloat(checkScore) > parseFloat($("#dyscoreNumber0").val())){
		    			 alert("第"+(i+1)+"行党员申请积分不能大于单次上限分值");
		    			 check1=false;
		    			 return false;
		    			 }
		    			var sex=$(this).children("td" ).eq(2).text();
		    			var signMode=$(this).children("td" ).eq(3).text();		    			
		    			var organizePersonDetail=createOrganizePersonDetail(organizeId, organizeLifeId, 
		    					applyScore,checkScore,personId,signMode,sex,$("#column24").find("option:selected").text(),
		    					$("#personscoreid0").val(),personName,$("#dytype0").val())		
		    			organizePersonDetailList1.push(organizePersonDetail);		    			
		    		});		    			    		
		    		var sdate=($("#starttime").val()+":00").valueOf(); 	    		
		    		var eDate =($("#endtime").val()+":00").valueOf();
		    				    		
		    	var organizeLife=createQd($("#id").val(),
		    			$("#column24").val(),
		    			$("#lifename").val(),
		    			sdate,
		    			eDate,
		    			$("#adress").val(),
		    			CKEDITOR.instances.contentzy.getData(),
		    			$("#yyzl").val(),personScoreDetailList,organizePersonDetailList1);	   
		    	if(check1){
		    		
		    		var trs = $("#personInfo").find("tr");
					var xuhao = trs.length;
			    	if($("#lifename").val() == null || $("#lifename").val()==""){
			    		alert("活动名称不能为空！");
			    	}else if($("#lifename").val().length >100){
			    		alert("活动名称输入过长！");
			    	}else if($("#starttime").val()==null || $("#starttime").val()==""){
						alert("提交前请先选择会议开始时间！");
					}else if($("#endtime").val()==null || $("#endtime").val()==""){
						alert("提交前请先选择会议结束时间！");
					}else if(!checkDate($("#starttime").val(),$("#endtime").val())){
						alert("结束时间不能大于开始时间！")
						return false;
					}else if(CKEDITOR.instances.contentzy.getData() == null || CKEDITOR.instances.contentzy.getData()==""){
			    		alert("内容摘要不能为空！");
			    	}else if($("#dyfz0").val() == null || $("#dyfz0").val()==""){
			    		alert("申请积分不能为空！");
			    	}else if(parseFloat($("#dyfz0").val()) > parseFloat($("#dyscoreNumber0").val())){
			    		alert("申请积分不能大于单次上限分值！");
			    	}else if($("#personInfo tr").length==0){
			    		alert("参会党员不能为空！");
			    	}else{
			    		$.ajax({
							type : 'POST',	
							url : "${ctx}/life/personscore/upqd",
							dataType : 'json',
							contentType : 'application/json',
							data : JSON.stringify(organizeLife),
							success : function(result) {		
								if(result.type == "success"){
									$("#lifename").val("");
									$("#starttime").val("");
									$("#endtime").val("");
									$("#inputForm").attr("action","${ctx}/life/personscore/list");
									$("#inputForm").submit();
								} else {
									alert("签到失败！");
								}
							}
						});
			    	}		    	
		    	}
		    	
		    	
		 })      
		});
		function xg() {
			var personid=$("input[name='radioPersonId']:checked").val();
			var personName=$(".sds:checked").parent().next().children().text();			
			var check=true;		
			if(personName == ''){
				alert("请选择参会人员！");
				check=false;
			}	
			$("#personInfo").find("tr").each(function(){		    			
    			var personId1=$(this).children("td").eq(1).children("input").eq(0).val();
       			if(personid==personId1){
    				alert("当前党员已签到，请重新选择！");
    				check=false;
    			}
    		});		    
			if(check){
				layer.closeAll();			
				var sqscore=0;
				var shcore=0;
				var divs = $("#personS").find("div[id^=dyjs]");	    	    
	    		$(divs).each(function(j, divs) {		      			
	    			 score=$("#dyscoreNumber"+j).val();
	    			 defaultScore=$("#dyfz"+j).val();
	    			 sqscore=sqscore+score*1;
	    			 shcore=shcore+defaultScore*1;
	    		});		
	    		var itemSeq = 1 ;
				var trs = $("#personInfo").find("tr");
				var xuhao = trs.length;
				itemSeq++;
				
				$("#personInfo").append("<tr class='personInfo' id='"
								+ (xuhao + 1)
								+ "'>"
								+ "<td><span style='color:black'>"
								+ (xuhao + 1)
								+ "</span></td>"
								+ "<td>"+personName+"<input type='hidden' id='personId' value="+personid+" ></input></td>"
								+ "<td>男</td>"
								+ "<td>录入<input type='hidden' id='signMode' value='1' ></input></td>"
								+ "<td>"+defaultScore+"</td>"
								+ "<td style='text-align: center;'><button onclick='delPerson(this)' class='btn' data-toggle='modal' style='background: red; color: #FFF;'  data-target='#modal-del'>删除</button></td>"
								+ "</tr>");
			}		
		}
		  //删除方法
        function delPerson(obj) {
        	$(obj).parent().parent().remove();
        	
        	var trs = $("#personInfo").find("tr");
        	trs.each(function(k, value) {        		
        		// 重新排列序号
        		var spans = $(this).find("span");
        		for (var j = 0; j < spans.size(); j++) {
        			var span = spans[j];
        			$(span).text(k + 1);
        		}
        		// 设置TR的行ID
        		var trs = $(this).parent().find("tr");
        		$(trs).each(function(j, trs) {
        			$(this).prop("id", (j + 1));
        		});
        	});        
          }
		

	      
	      function dychange(id,size){
	    	  if(id != null && id != ''){					
					 $.ajax({  
					        url: "${ctx}/life/organizeLifeQd/queryPersonAssessmentInfo/"+id,  
					        type: "get",  
					        dataType: "json",  
					        async: false,//同步  
					        success: function(text){  
					        	if(text.sourceType=='1'){
					        		$("#dyscoreModeText"+size).val("固定"); 
					        		$("#dyfz"+size).attr("readonly","readonly");
					        	}else{
					        		$("#dyscoreModeText"+size).val("自设"); 
					        		$("#dyfz"+size).removeAttr("readonly");
					        	}
					        	$("#dyscoreMode"+size).val(text.sourceType); 			//分值方式：固定，自设		        	
					        	$("#dyscoreNumber"+size).val(text.upperCount); //分/次
					        	$("#dyfz"+size).val(text.upperCount); 					        	
					        	if(text.type=='1'){
					        		$("#dytyText"+size).val("加分"); 
					        	}else{
					        		$("#dytyText"+size).val("减分"); 
					        	}
					        	$("#dytype"+size).val(text.type); 					        	
					        	$("#dyupperLimitScore"+size).val(text.upperScore);
					        	$("#dysqcs"+size).val(text.applyCount);
					        }  
					    });  
				}
	    	 
}

	    //创建党员积分内容明细对象
	  	function createPersonScoreDetail(organizeId, organizeLifeId, personAssessmentInfoId, scoreMode,defaultScore,score
	  			,upperScore,type,year) {
			var object = new Object();
			object.organizeId = organizeId;//党组织ID
			object.organizeLifeId = organizeLifeId;//组织生活id
			object.personAssessmentInfoId = personAssessmentInfoId;//积分id
			object.scoreMode = scoreMode;//分值方式
			object.defaultScore = defaultScore;//分值（默认分数）
			object.score = score;//积分
			object.upperScore = upperScore;
			object.type = type;//类型加分减分
			object.year = year;//年份

			return object;
		}
	    //创建党员申请积分明细对象
	  	function createOrganizePersonDetail(organizeId, organizeLifeId,applyScore,checkScore,personId
	  			,signMode,sex,column1,personAssessmentInfoId,column2,type) {
			var object = new Object();
			object.organizeId = organizeId;//党组织ID
			object.organizeLifeId = organizeLifeId;//组织生活id
			object.applyScore = applyScore;
			object.checkScore = checkScore;
			object.personId = personId;//参会人员ID
			object.signMode = signMode;//录入方式
			object.sex = sex;//性别
			object.column1 = column1;//年份
			object.personAssessmentInfoId = personAssessmentInfoId;
			object.column2 = column2;//党员姓名
			object.type = type;

			return object;
		}
	    //创建签到总的对象
		function createQd(id,column24,lifename,starttime,endtime,adress,contentzy,yyzl,personScoreDetailList,organizePersonDetailList1) {
			var object = new Object();
			object.id = id;
			object.column24 = column24;
			object.lifename = lifename;
			object.starttime = starttime;
			object.endtime = endtime;
			object.adress = adress;
			object.contentzy = contentzy;
			object.yyzl = yyzl;
			object.personScoreDetailList = personScoreDetailList;
			object.organizePersonDetailList1 = organizePersonDetailList1;
			return object;
	    }
		function checknum(obj)
		{   if(/^\d+\.?\d{0,1}$/.test(obj.value)){
		       obj.value = obj.value;
		    }else{
		   obj.value = obj.value.substring(0,obj.value.length-1);
		}
		   
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a>修改党员积分申请</a></li>
	</ul>
<form:form id="inputForm" modelAttribute="organizeLife" action="${ctx}/life/personscore/save" method="post" class="form-horizontal">
		<form:hidden path="id" />
		<sys:message content="${message}"/>		
<div class="container">
			
			<div class="e-main" style='padding-bottom:60px;'>
				<div class="mian-box-content pb1">
					<div class="row margin-b10">
						<div class="col-xs-12">
							<div class="row-space">
								<div class="e-box float-e-margins  pb15">
										<div class="e-box-title">
										<h2>修改党员积分申请信息</h2>
										<div class="e-box-toolbar">
											<div class="btn-group">
											</div>
										</div>
									
										<div class="e-box-toolbar">
											<div class="btn-group">
												<button class="btn" id="jsdj"  data-toggle="modal" data-target="#modal-del">申请</button>
											</div>
										</div>
									</div>
									<div class="control-group">
									<div class="e-form pl15 pt15 form-item cler w-100per">
										<div class="col-md-1 tr"><span class="form-item-name w-5xl lh32">年份选择  </span>
										</div>
										<div class="col-md-1">
											<form:select path="column24" class="input-medium">
												<form:options items="${assessmentTimeList}"
													itemLabel="year" itemValue="id" htmlEscape="false" />
											</form:select>				
										</div>
											<div class="col-md-2 ml20 tr"><span class="form-item-name lh32">所在组织：</span></div>
										<div class="col-md-4">
											<span class="form-item-name w-100xl lh32">${organizeLife.organizationName}</span>
											<input type="hidden" id="organizationid" value="${organizeLife.organizationid}">
										</div>
									</div>
									</div>
									<div class="control-group">
									<div class="e-form pl15 form-item w-100per cler">
										<div class="col-md-1 tr"><span class="form-item-name w-5xl lh32">活动名称：<span style='color: red;font-size:50%;' >★</span></span>
										</div>
										<div class="col-md-3" >
                                      	<form:input path="lifename" maxlength="30" htmlEscape="false" style="width:600px"  class="input-xlarge required" />                                          					
										<input type="hidden"  id="organizeLifeId" val="${organizeLife.id}" ></input>
										</div>			
									</div>
									</div>
									<div class="control-group">
									<div class="e-form pl15 form-item w-100per cler">
										<div class="col-md-1 tr"><span class="form-item-name w-5xl lh32">活动起止时间：</span>
										</div>
										<div class="col-md-2" >
                                         <div class="" style="float:left;margin-left: 0px;">
            <input id="starttime" name="starttime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
					value="<fmt:formatDate value="${organizeLife.starttime}" pattern="yyyy-MM-dd HH:mm"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',isShowClear:false});"/>			</div>
					   					
										</div>				
										<div class="" style="float:left;margin-left: 0px;">
            <input id="endtime" name="endtime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
					value="<fmt:formatDate value="${organizeLife.endtime}" pattern="yyyy-MM-dd HH:mm"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',isShowClear:false});"/>			</div>															
									</div>
									</div>
									<div class="control-group">
									<div class="e-form pl15 form-item w-100per cler">
										<div class="col-md-1 tr"><span class="form-item-name w-5xl lh32">活动地点：</span>
										</div>
										<div class="col-md-2" >
                                       <form:input path="adress" htmlEscape="false" style="width:600px"  class="input-xlarge required"/>     					
										</div>																			
									</div>
									</div>
									<div class="control-group">
									<div class="e-form pl15 form-item w-100per cler">
										<div class="col-md-1 tr"><span class="form-item-name w-5xl lh32">内容摘要：</span>
										</div>
										<div class="col-md-10" >                                       
                                       
                                       <form:textarea id="contentzy" htmlEscape="true" path="contentzy" rows="4" maxlength="200" class="input-xxlarge "/>
				                       <sys:ckeditor replace="contentzy" uploadPath="/life/organizeLife" />
                                                                                                                     					
										</div>																				
									</div>
									</div>							
									
									<div class="control-group">
										<div class="col-md-1 tr"><span class="form-item-name w-5xl lh32">资料照片：</span></div>
										<div class="controls">				
											<form:hidden id="yyzl" path="yyzl" htmlEscape="false" maxlength="255" class="input-xlarge"/>				
											<sys:ckfinder input="yyzl" type="images" uploadPath="/life/organizeLife" selectMultiple="true" maxWidth="100" maxHeight="100"/>												
										</div>														
									</div>						
									
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="mian-box-content pt1">
					<div class="row margin-b10">
						<div class="col-xs-12">
							<div class="row-space">
								<div class="e-box float-e-margins  pb15">
									<div class="e-box-title">
										<h2>党员积分内容</h2>
										<div class="e-box-toolbar">
											<div class="btn-group">
												<button class="btn" id="queryPersonScoreInfo" data-toggle="modal" data-target="#modal-del">查看积分说明</button>
											</div>
										</div>
									</div>
									<div id="personS">
									<c:forEach var='e' items='${personScoreDetailList}' varStatus='i'>
										<div id="dyjs0" class="dyjs">
									<div class="e-form pl15 form-item w-100per cler pt10 pb10">
										<div class="col-md-1 tr"><span class="form-item-name w-5xl lh32">积分内容</span>
										</div>
										<div class="col-md-9">
											<select id="personscoreid${ i.index}" onchange="dychange(this.options[this.options.selectedIndex].value,0);" class="form-item-input w-100xl">
														<c:forEach var='d' items='${personAssessmentInfoList}'>															
																	
															<c:choose>
																	<c:when test="${d.id==e.personAssessmentInfoId}">
																	<option selected="selected"  value='${d.id }'>${d.title }</option>
																	</c:when>
																	<c:otherwise>
																		<option value='${d.id }'>${d.title }</option>
																	</c:otherwise>
																</c:choose>														
														</c:forEach>
													</select> 
										</div>
									</div>
										<div class="form-item e-form w-100per pl15 cler divGroup">
											<div class="col-md-1 tr"><span class="form-item-name w-5xl lh32">赋分方式 </span>
											</div>
											<div class="col-md-1">
											<input id="dyscoreModeText0" type="text"  readonly="readonly" style="width:50px">
											</div>											
											<div class="col-md-2 tr"><span class="form-item-name w-5xl lh32">上限分值/次</span>
											</div>
											<div class="col-md-1 ">
												<input id="dyscoreNumber0" type="text"  readonly="readonly" style="width:50px">
											</div>
											<div class="col-md-2 tr"><span class="form-item-name w-5xl lh32">申请积分<span style='color: red;font-size:50%;' >★</span></span>
											</div>
											<div class="col-md-1 ">
												<input id="dyfz0" type="text" onkeyup="checknum(this);" readonly="readonly" style="width:50px">
											</div>
										</div>
										<div class="form-item e-form w-100per pl15 cler divGroup">
											<div class="col-md-1 tr"><span class="form-item-name w-5xl lh32">类型 </span>
											</div>
											<div class="col-md-1 ">
												<input id="dytyText0" type="text"  readonly="readonly" style="width:50px">
												<input type="hidden" id="dytype0"> 
											</div>
											<div class="col-md-2 tr"><span class="form-item-name w-5xl lh32">上限分值 </span>
											</div>
											<div class="col-md-1 ">
											<input id="dyupperLimitScore0" type="text"  readonly="readonly" style="width:50px">
											</div>
											<!-- 
											<div class="col-md-2 tr"><span class="form-item-name w-5xl lh32">已申请次数</span>
											</div>
											<div class="col-md-1 ">
											<input id="dysqcs0" type="text" readonly="readonly" style="width:50px">
											</div>
											-->
													<div class="col-md-2 tr">										
										</div>
									</div>
									</div>
						         	</div>
						         	</c:forEach>
								</div>
							</div>
						</div>
					</div>
				</div>							
				<div class="mian-box-content pt1">
					<div class="row margin-b10">
						<div class="col-xs-12">
							<div class="row-space">
								<div class="e-box float-e-margins  pb15">
								<div class="e-box-title">
										<h2>党员签到明细</h2>									
										<div class="e-box-toolbar">
											<div class="btn-group">
												<button class="btn"  id="sgAdd" data-toggle="modal" data-target="#modal-del">手工录入</button>
											</div>
										</div>										
									</div>
									<div class="e-box-content p-xs">
										<div id="tab8-2" class="tab-pane">
											<table class="e-table ">
												<thead>
													<tr>
													    <th>序号</th>
														<th>姓名</th>
														<th>性别</th>
														<th class="tc">记录方式</th>
														<th>申请积分</th>
														<th class="tc">操作</th>
													</tr>
												</thead>
												<tbody id="personInfo">
							<c:forEach var='e' items='${organizePersonDetailList}' varStatus='i'>													
							<tr class='personInfo' id="${ i.index+1}">
							<td><span style='color:black'>${ i.index+1}</span></td>
							<td>${e.column2}<input type='hidden' id='personId' value='${e.personId}' ></input></td>
							<td>${e.sex}</td>
							<td>${e.signMode}<input type='hidden' id='signMode' value='${e.signMode}' ></input></td>	
						    <td><input type='text' onkeyup='checknum(this);'  style='width:50px' id='defaultScore' value="${e.applyScore}" ></input></td>
							<td style='text-align: center;'>
							<button onclick='delPerson(this)' class='btn' data-toggle='modal' 
							style='background: red; color: #FFF;'  data-target='#modal-del'>删除</button>
							</td>
							</tr>
													
													</c:forEach>								
												</tbody>											
											</table>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		</form:form>		
</body>
</html>